package cn.study.luckyapp.activityrule.command;

import cn.study.luckydomain.gateway.ActivityRuleGateway;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

@AllArgsConstructor
@Component
public class ActivityRuleDeleteCmdExe {
    private final ActivityRuleGateway activityRuleGateway;

    public void execute(Long activityId) {
        activityRuleGateway.deleteByActivityId(activityId);
    }
}
